﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Big2.CardsLib;

namespace Big2.Big2WcfService
{
    [ServiceContract (SessionMode = SessionMode.Required, CallbackContract = typeof(IBig2ServerServiceCallback))]
    //[ServiceContract(SessionMode = SessionMode.Required)]

    public interface IBig2ServerService 
    {
        [OperationContract(IsOneWay=false)]
        List<string> Login(string name);

        [OperationContract(IsOneWay = false)]
        int JoinGame(string name);

        [OperationContract(IsOneWay = false)]
        int PlayCard(string name, List<Card> cardsToPlay);

        [OperationContract(IsOneWay = false)]
        int Pass(string name);

        [OperationContract(IsOneWay = false)]
        int Talk(string name,string message);

        [OperationContract(IsOneWay = true)]
        void Logout(string name);

        [OperationContract(IsOneWay = true)]
        void StartGame(string name);

    }
}
